//package com.itheima.aop;
//
//import lombok.extern.slf4j.Slf4j;
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.annotation.Around;
//import org.aspectj.lang.annotation.Aspect;
//import org.springframework.stereotype.Component;
//
//@Slf4j
//@Aspect
//@Component
//public class DemoAspect {
//
//    @Around("execution(* com.itheima.service.impl.DeptServiceImpl.*(*))")
//    public Object recordTime(ProceedingJoinPoint joinPoint) throws Throwable {
//        long begin = System.currentTimeMillis();
//
//        Object result = joinPoint.proceed();
//
//        long end = System.currentTimeMillis();
//        log.info("耗时：{}ms", begin - end);
//        return result;
//    }
//}
